//
//  NSString+Predicate.h
//  iOS-Category
//
//  Created by 庄BB的MacBook on 16/7/20.
//  Copyright © 2016年 BBFC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Predicate)

//有效的电话号码
- (BOOL) isValidMobileNumber;

//有效的真实姓名
- (BOOL) isValidRealName;

//是否只有中文
- (BOOL) isOnlyChinese;

//有效的验证码(根据自家的验证码位数进行修改)
- (BOOL) isValidVerifyCode;

//有效的银行卡号
- (BOOL) isValidBankCardNumber;

//有效的邮箱
- (BOOL) isValidEmail;

//有效的字母数字密码(6-12)
- (BOOL) isValidAlphaNumberPassword;




//检测有效身份证
//15位
- (BOOL)isValidIdentifyFifteen;

//18位
- (BOOL)isValidIdentifyEighteen;

//限制只能输入数字
- (BOOL)isOnlyNumber;


//浮点型判断
- (BOOL)isPureFloat;


- (BOOL)isTradeNumber;
// 交易页面种子价格正则匹配
- (BOOL)isTradePrice;

- (BOOL)isTradePassword;

// 指定最多位数的数字
- (BOOL)isOnlyNumberWithCount:(NSInteger)count;
@end
